function gets(pageNum) {
    var num=$("#number").val();
    var cna=$("#cname").val();
    var ji=$("#jixing").val();
    var gui=$("#guige").val();
    var dan=$("#danwei").val();
    var cc=$("#cc").val();
    var dc=$("#dcid").val();
    var zhaung=$("#zhuangtai").val();
    var pageN = pageNum;
    $.ajax({
            url: '/myspringboot/suppliser/findConditional',
            type: 'post',
            dataType: "json",
            data:{
                number:num,
                cname:cna,
                jixing:ji,
                guige:gui,
                danwei:dan,
                cc:cc,
                leibie :dc,
                zhaungtai:zhaung,
                pageNum:pageN,
            },
        success:function(result){
            var result = result.data;
            yibu(result.pages,result.pageNum);
            var list = result.list;
            $(".a").empty();
            for (var i = 0; i < list.length; i++){
                   var diId = list[i].diId;
                    var dra = list[i].drugAtegory;
                    var  daNumber=null;
                    var data={}
                    if (dra==null){
                        daNumber="null";
                    }else {
                        daNumber = dra.daNumber;
                        daId = dra.daId;
                    }
                    var diName = list[i].diName;
                    var diForm = list[i].diForm;
                    var diSpecifications = list[i].diSpecifications;
                    var diUnit = list[i].diUnit;
                    var diCc = list[i].diCc;
                var drugCategory = list[i].drugCategory;
                if (drugCategory != null) {
                    var diDaCategory = drugCategory.dcName;
                }else {
                    var diDaCategory="null"
                }
                    var diState = list[i].diState;
                    var a="";
                    if (diState==0){
                         a = "正常";
                    } else {
                         a= "不正常"
                    }
                var $tr = '<tr>'+
                    '<td>'+daNumber+'</td>'+
                    '<td>'+diName+'</td>'+
                    '<td>'+diForm+'</td>'+
                    '<td>'+diSpecifications+'</td>'+
                    '<td>'+diUnit+'</td>'+
                    '<td>'+diCc+'</td>'+
                    '<td>'+diDaCategory+'</td>'+
                    '<td>'+a+'</td>'+
                    '<td>'+'<button id="btn_re" data-toggle="modal"onclick="findOne('+daId+')" data-target="#myModal">查看</button>'+'</td>'+
                    '</tr>'
                $(".a").append($tr);
            }
        }
        }
    )
}